package homework6_24.practice5.jiekou;

import homework6_24.practice5.*;

public class Test {
	public static void main(String[] args) {
		Swimmer f = new Fish("旗鱼尼莫", "120KM/H");
		Swimmer d = new Dolphin("海豚尼尔", "55.5KM/H");
		Swimmer s = new Submarine("长城号核潜艇", "82.8KM/H");

		((Fish) f).swim();
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		((Dolphin)d).scan();
		((Dolphin)d).swim();
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
		((Submarine)s).swim();
		((Submarine)s).scan();
	}
}
